package com.felix.spider.domain;

import javax.persistence.*;
import java.io.Serializable;

/** 车次管理表 */
// mpi_train_manage(车次管理表)
// ------------------------------------------
// id(编号)                        PKInteger
// bureau_id(公安局代码)           String
// bureau_name(所属公安局)         String
// dept_id(所属机构代码)           String
// dept_name(所属公安局反恐怖处)   String
// police_team_id(乘警队机构代码)  String
// police_team(乘警队)             String
// train_number(值乘列车车次)      String
@Entity
@Table(name = "mpi_train_manage")
public class TrainManage implements Serializable {

  private static final long serialVersionUID = 1L;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  protected Integer id;

  @Column(name = "bureau_id")
  protected String bureauId;

  @Column(name = "bureau_name")
  protected String bureauName;

  @Column(name = "dept_id")
  protected String deptId;

  @Column(name = "dept_name")
  protected String deptName;

  @Column(name = "police_team_id")
  protected String policeTeamId;

  @Column(name = "police_team")
  protected String policeTeam;

  @Column(name = "train_number")
  protected String trainNumber;

  public TrainManage() {}

  public TrainManage(
      String bureauId,
      String bureauName,
      String deptId,
      String deptName,
      String policeTeamId,
      String policeTeam,
      String trainNumber) {
    this.bureauId = bureauId;
    this.bureauName = bureauName;
    this.deptId = deptId;
    this.deptName = deptName;
    this.policeTeamId = policeTeamId;
    this.policeTeam = policeTeam;
    this.trainNumber = trainNumber;
  }

  /** 获取编号 */
  public Integer getId() {
    return id;
  }
  /** 设置编号 */
  public void setId(Integer value) {
    this.id = value;
  }
  /** 获取公安局代码 */
  public String getBureauId() {
    return bureauId;
  }
  /** 设置公安局代码 */
  public void setBureauId(String value) {
    this.bureauId = value;
  }
  /** 获取所属公安局 */
  public String getBureauName() {
    return bureauName;
  }
  /** 设置所属公安局 */
  public void setBureauName(String value) {
    this.bureauName = value;
  }
  /** 获取所属机构代码 */
  public String getDeptId() {
    return deptId;
  }
  /** 设置所属机构代码 */
  public void setDeptId(String value) {
    this.deptId = value;
  }
  /** 获取所属公安局反恐怖处 */
  public String getDeptName() {
    return deptName;
  }
  /** 设置所属公安局反恐怖处 */
  public void setDeptName(String value) {
    this.deptName = value;
  }
  /** 获取乘警队机构代码 */
  public String getPoliceTeamId() {
    return policeTeamId;
  }
  /** 设置乘警队机构代码 */
  public void setPoliceTeamId(String value) {
    this.policeTeamId = value;
  }
  /** 获取乘警队 */
  public String getPoliceTeam() {
    return policeTeam;
  }
  /** 设置乘警队 */
  public void setPoliceTeam(String value) {
    this.policeTeam = value;
  }
  /** 获取值乘列车车次 */
  public String getTrainNumber() {
    return trainNumber;
  }
  /** 设置值乘列车车次 */
  public void setTrainNumber(String value) {
    this.trainNumber = value;
  }

  @Override
  public String toString() {
    return "TrainManage{"
        + "id="
        + id
        + ", bureauId="
        + bureauId
        + ", bureauName='"
        + bureauName
        + '\''
        + ", deptId="
        + deptId
        + ", deptName='"
        + deptName
        + '\''
        + ", policeTeamId="
        + policeTeamId
        + ", policeTeam='"
        + policeTeam
        + '\''
        + ", trainNumber='"
        + trainNumber
        + '\''
        + '}';
  }
}
